Шаблон:Маршрутная карта/doc/en

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску
This is an English translation of Шаблон:Маршрутная карта/doc.

Usage[править код]

The template generates diagrams of transport systems, such as railways, canals, footpaths, roads and so on.

Параметры шаблона[Править данные шаблона]

ПараметрОписаниеТипСтатус
Table headingtitle заголовок

Heading displayed at the top of the table

По умолчанию
Строковый (без форматирования)необязательный
Heading colortitle color цвет заголовка

Font color of the table heading text

По умолчанию
#FFFFFF
Строковый (без форматирования)необязательный
Heading backgroundtitle bg color цвет фона заголовка

Heading row background color

По умолчанию
#27404E
Строковый (без форматирования)необязательный
Table collapsibilitycollapsible сворачиваемый

By default, the table is collapsible. Values 'no' or '0' will disable this

Строковый (без форматирования)необязательный
Collapse statecollapse

The default state of the collapsible table: 'collapsed', 'autocollapse' or '[empty]' (= 'expanded')

Строковый (без форматирования)необязательный
Backlink to the templatenavbar tnavbar

Non-empty value will provide backlinks to the template if transcluded to other pages; use {{subst:PAGENAME}}

По умолчанию
Строковый (без форматирования)необязательный
Position of Navbarnavbar pos

Value '1' for changing the Navbar position to the even level of the legend link, Value '2' put it at the bottom of the table

По умолчанию
Строковый (без форматирования)необязательный
Legend linklegend легенда

Pagename for the map legend link. Values '0' or 'no' will hide the map legend link

По умолчанию
Шаблон:Маршрутная карта/Условные обозначения
Имя страницынеобязательный
Table floatingfloat обтекание

Table floating relative to the page: 'left', 'right' or 'none' (for centering the table, use 'none' and define table style with margin:auto)

По умолчанию
right
Строковый (без форматирования)необязательный
Background colorbg цвет фона

Background color for the whole table

По умолчанию
#F9F9F9
Строковый (без форматирования)необязательный
Table CSS-stylestyle стиль

Additional CSS-styling of the whole table

Строковый (без форматирования)необязательный
Subheadingon top вверху

Subheading or an explanatory note at the top of the table

Строковый (без форматирования)необязательный
Footnotefootnote внизу

Footnote or references at the bottom of the table

Строковый (без форматирования)необязательный
Width of text columnstext-width ширина текста

Comma-separated list of widths of the text columns (recommended if using collapsible sections)

По умолчанию
Строковый (без форматирования)необязательный
Route map1 map

Coding for the route map as described at the template documentation

Строковый (без форматирования)обязательный

This template is intended as a single replacement for the entire series of "BS#" and "BS#-2" templates and is planned to support all their functions. The map (or 1) parameter is required.

Blank template with all available parameters:

{{Routemap|title=
|title color=
|title bg color=
|collapsible=
|collapse=
|navbar={{subst:PAGENAME}}
|legend=
|text-width=,,
|style=
|on top=
|1=
<!-- map coding -->
|footnote=
}}

Map structure[править код]

Eurostar route map
hour
km
0:00
St. Pancras International
0
0:15
Ebbsfleet International
37
0:29
Ashford International
90
0:31
United Kingdom
France
0:51
0:55
Calais-Fréthun
1:22
Lille-Europe
France
Belgium
2:01
Bruxelles Midi/Brussel-Zuid
2:16
Paris Gare du Nord
492
2:40
Marne la Vallée-Chessy
Seasonal service only
4:34
Lyon (La Part-Dieu)
5:36
Avignon Centre
5:52
Avignon — TGV
6:17
Aix-en-Provence — TGV
7:12
Moûtiers
(ski)
7:30
Aime la Plagne
(ski, set down only)
7:51
Bourg Saint Maurice
(ski)
Times shown are fastest timetabled journey from London St Pancras.
{{routemap|title=Eurostar route map|text-width=25,110,90|1=
~~hour~~ ~~ ~~km
KBHFa~~0:00~~[[St. Pancras railway station|St. Pancras International]]~~ ~~0
eHST~~ ~~ ~~[[Stratford International station|Stratford International]] (Opening 20xx)
HST~~0:15~~[[Ebbsfleet International railway station|Ebbsfleet International]]~~ ~~37
exCONTgq\eABZg+r\~~ ~~ ~~[[Fawkham Junction]] {{RoutemapRoute|Licon=L|[[Chatham Main Line]]|enclosed=yes}}
HST~~0:29~~[[Ashford International railway station|Ashford International]]~~ ~~90
tSTRa~~''0:31''~~
tSTR!~lZOLL~~ ~~ ~~[[Channel Tunnel]] across [[Strait of Dover]]~~{{BSsplit{{!}}United Kingdom|France|line=yes}}~~bg=#558cd3
tSTRe~~''0:51''~~
HST~~0:55~~[[Gare de Calais-Fréthun|Calais-Fréthun]]
BHF~~1:22~~[[Gare de Lille-Europe|Lille-Europe]]
\KRWgl\KRW+r
\STR\STR!~lZOLL~~ ~~ ~~ ~~{{BSsplit{{!}}France|Belgium|line=yes}}
KRW+l\KRWgr\KBHFe~~2:01~~[[Brussels-South|Bruxelles Midi/Brussel-Zuid]]
KBHFe\KRWgl\KRW+r~~2:16~~[[Gare du Nord|Paris Gare du Nord]]~~ ~~492
\STR\KBHFe~~2:40~~[[Marne la Vallée-Chessy railway station|Marne la Vallée-Chessy]]~~([[Disneyland Resort Paris|Disneyland]])
-startCollapsible--replace
\CONTf\~~ ~~ ~~''Seasonal service only''
KRW+l\KRWgr\
HST\KRWgl\KRW+r~~4:34~~[[Lyon]] ([[La Part-Dieu]])
STR\STR\KHSTe~~5:36~~ [[Avignon]] Centre
HST\STR\~~5:52~~Avignon — [[TGV]]
KHSTe\STR\~~6:17~~[[Aix-en-Provence]] — TGV
HST~~7:12~~[[Moûtiers]]~~(ski)
HST(R)~~7:30~~[[La Plagne|Aime la Plagne]]~~(ski, set down only)
KHSTe~~7:51~~[[Bourg Saint Maurice]]~~(ski)
-endCollapsible-
|footnote=Times shown are fastest timetabled journey from London St Pancras.
}}

Row format[править код]

The map is composed by rows from top to bottom. Each row may contain one or more icons horizontally and description text for explanation for that row. The basic format for each row is as follows:

Icon ID~~Main text

For more text cells:

Icon ID~~Time distance text~~Main text~~note 1~~note 2
  • If you want to skip the middle text cell for the next text cell, you must use a white space between the text separators (~~), otherwise the wiki software will regard it as a user signature magicword, which overrides other functions.

For more icons on the same row, use backslash (\) to separate between icon IDs:

Icon ID 1\Icon ID 2\Icon ID 3

The alignment and font size of each text cell is defined differently, but they can be overridden by using {{align}} template or span/div style. By default:

  • "Time distance": right, smaller size
  • "Main text": left, normal size
  • "Note 1" left next to "main text", smaller font size
  • "Note 2" right, smaller size

You may use <br/> or {{BSsplit}} template to hard return the text in the same row as shown in the above example. It is usually done in the "time distance" and "note 2" cells because they use smaller font so the height of row will not be lengthened, avoiding break between icons vertically.